<template>
  <div class="collection">
    <div class="collection_list">
      <div
        class="collection_list_one"
        v-for="(item, index) in collectionList"
        :key="index"
      >
        <img v-lazy="item.avatarUrl" />
        <p>{{ item.nickname }}</p>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    collectionList: {
      type: Array,
      default () {
        return []
      }
    }
  }
}
</script>
<style lang="less" scoped>
.collection {
  &_list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    &_one {
      width: 10%;
      height: 100px;
      text-align: center;
      margin-top: 20px;
      img {
        width: 70%;
        height: 70px;
        border-radius: 50%;
      }
    }
  }
}
</style>
